﻿@model G15_Agent.Models.DanhSachNCC

@{
    ViewBag.Title = "Active";
}

<h2>Kích hoạt</h2>
<h3>Bạn muốn kích hoạt nhà cung cấp này?</h3>
<fieldset>
    <legend>Nhà cung cấp</legend>

<div class="editor-label">
            @Html.LabelFor(model => model.TLGiaNCC,"Mã NCC")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaNCC)
            @Html.ValidationMessageFor(model => model.MaNCC)
        </div>

     <div class="editor-label">
            @Html.LabelFor(model => model.TenNCC, "Tên NCC")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TenNCC)
            @Html.ValidationMessageFor(model => model.TenNCC)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TLGiaNCC,"Tỷ lệ giá nhà cung cấp")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TLGiaNCC)
            @Html.ValidationMessageFor(model => model.TLGiaNCC)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TLGiaKH,"Tỷ lệ giá khách hàng")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TLGiaKH)
            @Html.ValidationMessageFor(model => model.TLGiaKH)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DiaChiWS,"Địa chỉ WS")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DiaChiWS)
            @Html.ValidationMessageFor(model => model.DiaChiWS)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Username)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Username)
            @Html.ValidationMessageFor(model => model.Username)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Pass)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Pass)
            @Html.ValidationMessageFor(model => model.Pass)
        </div> 
        
        <div class="editor-label">
            @Html.LabelFor(model => model.LoaiNCC, "Loại NCC")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LoaiNCC1.TenLoai)
            @Html.ValidationMessageFor(model => model.LoaiNCC1.TenLoai)
        </div> 


   
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Kích hoạt" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
